added osx things
moved install script. also starting to support os-specific builds.
stray if