Updated templates
Changed CMakeLists.txt to work with MINGW