some SDL fixes