Removed some more unneeded code for .osx