NSA helps Apple, Sun and Red Hat harden their systems