Properly mask subclassed WM_SYSCOMMAND wParam values

Fixes #94.  Many thanks to @Kroc for reporting.