[utils] Fix warnings about fprintf type specifiers under Windows

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
[utils] Remove warning about unused count variable under Windows

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
[utils] Remove warning about unused function ‘thread_exited_dtor’ under Windows

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
[utils] Remove warnings about implcit prototypes and format specifiers

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
[metadata] Remove warnings about missing prototypes

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
[metadata] Remove warnings about unused functions/variables under Windows

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
[metadata] Fix warnings about prototypes,casting under Windows

Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>