win32: Fix 2 errors under MinGW - fixes #359

Signed-off-by: Benn Snyder <benn.snyder@gmail.com>