Support for building on mac with SDL2.