win: Fix window frame when DWM is disabled, closes #519.