Two small changes to be able to run SDL2 in Windows.

Also fixed portrait rendering, issue #18.