Fix MSVC linking with SDL; fix more MSVC warnings