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

Builds under Cygwin and Linux with these changes
Quite so. I must have assume the specifier was correct as a starting point - %lu it is...