Support compilation without libsdl (e.g. MinGW on Travis CI).