terrible hack for SDL on OS X

Need to test to make sure it still works on Linux