added windows build configuration and bugfix in application.cpp