Mac OS 10.7.5 support

I had to add this workaround to ensure the SDL library gets correctly initialized on MacOS.  You might want to merge that into your branch.  I haven't tested it on Windows or Linux, though.  I haven't been able to get SDL installed on those platforms...