added OS X magic command to make the build scripts work. fixes #177

Isn't there a easy way to detect this env var? Like parsing `uname`.