WIP: Adding support for SDL2

This is WIP of SDL2 support. Just install SDL2 libraries, configure should detect first SDL2.
There is some issue with texts for OpenGL for some cases for Grim engine, I don't know what is source of it.
It's not tested very well, I would like others look into code and try runtime. For my case in OS X I'm not able run shaders, it seems I have some compatibility issues. I have OpenGL 3.3 with shaders 3.3.
I had to change version from 1.30 to 1.40 in shader.cpp to able shader compiled (tried 3.30 too), but still I got black screen.
So comments and suggestions are welcome.

Since SDL2 and SDL1.2 can be installed at the same time, I suggest that if we merge this, we should have a configure-option that lets the user choose between sdl2 and sdl1. (It's particularly usefull for us, to allow compiling for either when we need to).