Fix build on OSX with SDL 1.2