Clean up some warnings

This makes the build output length drops from 1500 lines to 300 in MSVC
Please don't use fixed-size integers unless there's a reason to. In this case, `unsigned` is sufficient.