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)