Remove deprecation warnings as soon as metrics-lib 1.7.0 is released
There are a couple of deprecation warnings when compiling CollecTor, some of which being introduced by preparations for metrics-lib 1.7.0. Once that is released we should remove those warnings by updating to newer code.