Allow compilation with either SDL2 or SDL1.2 support

This is a temporary solution until we can drop SDL1.2 completely