fixes in the OS X package installation and add script for uninstallation