Coding windows with per monitor DPI awareness

Standard templates generate incorrect dpi entries in the manifest, I have posted the fix, it also allows to choose System aware or Per Monitor mode: