WIP: Adding support for SDL2

This is WIP of SDL2 support. Just install SDL2 libraries, configure should detect first SDL2.
Currently it lack proper support for chars inputed with meta keys. The meta keys are reserved for special combinations of keycodes.
Beside that there are issues with fullscreen support for Linux and Mac OS X
Work on this PR is suspended, I'll keep update this PR to up to date with upstream.