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

Builds under Cygwin and Linux with these changes
I don't think duplicating all calls is the right approach here. We should conditionally define the type specifiers, `"%I64d` and `%lld` and then change the `fprintf` calls to use it instead.