Remove some OS X specific stuff.