Got instance loading working.
Reorganized the main CMakeLists file and added an icon on Windows.