Fix compiler warnings
Description
This fixes all compiler warnings in the buildbox-common library, except for the invalid-pch warning and REAPI deprecation warnings, which we require to support older REAPI clients or servers.
I'm planning to open a follow-up MR that will verify that no new warnings will show up but that's not quite ready yet.
Edited by Jürg Billeter