Update install script with --prefix and osx support.