SDL 1.2 fixes