Use _NSGetEnviron to get environ on Darwin.

Reported by Blake Sweeney.
Declare environ explicitly as it is not necessarily declared.