MPC-HC API: Fix some warnings when handling HWND handles on x64.

64-bit versions of Windows use 32-bit handles for interoperability so we can just truncate/sign-extend them.