adding SDL2 platform support, part 1