Fixes build issues with SDL on OSX.