Fixed SDL 1.2 support