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

Builds under Cygwin and Linux with these changes
Thanks for catching that. Apologies - that shouldn't be there :-/

I have rebased that commit and pushed up to my branch (first time I have tried rebasing an old commit). Has this been removed correctly for you?