Removes MacOSX-specific stuff.