got it working for osx. main.cpp needs to include SDL.h because SDL.h does macro magic and messes with main