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

Builds under Cygwin and Linux with these changes
That would be done with a check for defined(_MSC_VER) would it?