Modified to compile against SDL 2.0