Add support for Mac OS X

HXEmu would also build on Mac OS X (tested on Mac OS X 10.7) with these patches applied. I had to remove the binary integer constants, because xcode for Mac OS X is shipped with gcc 4.2 which apparently does not yet support binary integer constants.

I've also added support for OSX in the compile script. I am not sure if this is the best way to do it, though it works for me (tested using SDL installed from the rudix repository, http://www.rudix.org/).