Make the elf parser use the phdrs and the DT_DYNAMIC contents
Remove boundary checks to fix regression, must redo the patch with more fuzzing
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).