Window mem leak: Add another option for mem leak detection. One new CMake option added and with its define one inclde to Application.cpp. Fixes #628.