use _NSGetEnviron to traverse environment variables on macosx

This solves #93 reported by @lastobelus and @kopischke.
This is tested by @kopischke.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>