Fixing warnings in utils/metadata when building under Windows/Cygwin

Builds under Cygwin and Linux with these changes
I wanted to check those out myself but haven't had time yet. We've recently started cross-compiling Mono from OSX (with MinGW) and I see the same sort of warnings myself.