Added sdl libraries for windows, and fixed a few problems for the port on windows.