Fixed window captures missing out on a few pixels

Turns out it's a bug(?) in GetWindowRect when "not linked with WINVER=6"
on Vista or higher. Switched to using DwmGetWindowAttribute from
dwmapi.dll which should prove to return more accurate results for *all*
windows.