Fixed cursor centering for odd window sizes.
Fixed reporting of negative window positions.

MSDN recommends LOWORD and HIWORD for WM_MOVE, but these do not
handle negative window positions correctly.

Fixes #172.