Added compatibility for MinGW builds to CMakeLists.txt and fixed/refactored the about dialog