Some SDL 1.2 stuff and fixes. More to come...