make sdl malloc hack nicer, and improve back deps trick