cleanup CMake files, add Windows compilation workaround
Add assert macro.
GraphicsSystem: Fix calls to SDL IMG_Init causing the program to silently exit.
Fix VC warnings (unused variable, implicit float to int conversion, implicit double to float conversion).