-win32 { DEFINES += __GCCWIN32__ }
-macx { DEFINES += __GCCUNIX__ _OSX_ }
-unix { DEFINES += __GCCUNIX__ }
+win32 { DEFINES += __GCCWIN32__ }
+else:macx { DEFINES += __GCCUNIX__ __THINK_STUPID__ }
+else:unix { DEFINES += __GCCUNIX__ }
+
+# SDL (to link statically on Mac)
+macx { LIBS += `sdl-config --static-libs` }
+else { LIBS += `$(CROSS)sdl-config --libs` }