Fix OS X build.

* We need to pass --noexecstack to the linker, not the assembler.
* We should not pass it on OS X since it's the default there (and OS X uses a different flag).