Fix compilation error on OS X 10.7.5 (undef symbol)

Shared libraries and bundles don't have direct access to environ. Use
the _NSGetEnviron() routine to retrieve the address of environ at
runtime. See "PROGRAMMING" section of ENVIRON(7).