Remove glew entirely

Remove glew and add appropriate SDL2 libraries for Windows. Also fix several
compilation issues with MSVC.