Weird hack for SDL on OSX