SDL: add support for SDL2

As the title says, this set of patches adds initial support for SDL2.
The commit messages for each patch should contain an explanation to deficiencies
in the related areas, but one thing that is not mentioned is that this does not contain support
for explicitly using OpenGL (although it might be the actual backend SDL2 is using to render).

Also, some of the changes might be considered a bit of hacks (the compatibility defines for an instance),
so I'm certainly up for discussion on how to improve on cleanliness.

I've tested the changes on a normal Linux machine, and as far as my tests goes, the changes are
at a state where they are usable (albeit experimental).
As far as I know, this is wrong. The UTF and UCS encodings that do not have an explicit BE or LE should be giving whatever endianness they want along with a BOM. This shouldn't be using a macro to redefine it. Likely your SDL is passing directly on to iconv anyway.

([FWIW, I had to do the same thing](https://github.com/clone2727/scummvm/blob/iconv/common/iconv.cpp#L34))