fix osx build

This fixes the build on OSX 10.9 with SDL installed using homebrew. I've checked that it still compiles on Linux.