CMAKE: Add support for SDL2main

This is required for Windows support
Settings: Make sure the settings file directory exists
GFX: Bitfields are a portability hell, remove them
ALL: Fix build with MinGW