fix unused variables and change location of CentralityProvider for compatibility with 5_3_16 and later