fixed: Compile warnings + cosmetics

This fixes a whole bunch of compile warnings, removing a lot of noise when doing a full compile.
VC++ doesn't support the `z` length modifier and the docs state that %lu should be used for size_t.