Add support for Mac OS X, fixed bug for ROM initialisation

HXEmu will 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/).

I also fixed a little bug which caused a segfault for me when initializing the ROMs (reduced iterations from 5 to 4).