patched libsdl from Azamat Hackimov