home: Use `xdg-open` on Linux and `open` on Mac OS

Closes homebrew/linuxbrew#28
New environment option, `--env=inherit`

Pass the current CC/CXX environment through to the build environment
with `--env=inherit`. This option allows passing the user's C compiler
environment variables through to the build environment and avoids
defaulting to the system gcc/g++, which does not work on module-based
Linux cluster distributions.

Closes Homebrew/linuxbrew#13
Closes Homebrew/linuxbrew#29
Fix dynamically_linked_libraries for Linux
Use OS.mac? rather than MACOS