Win32 compilation fixes.

Signed-off-by: Rob Caelers <robc@krandor.org>