Added Mac OS X compability

Added pretty much the same conditional defines Dominique Louis had  in the SDL 1.2 header translations. (Tested and works on Mac OS 10.8.4)
Merge pull request #4 from Stoney-FD/master

Added Mac OS X compability