Fixed Windows DPI scaling causing strange window behavior (#679).
Added support for SetProcessDpiAwareness as well, on Windows versions that support it.
Merge branch 'bugfix/windows_dpi_scaling'