Removing OSX runtime and setting script headers correctly