Fixing compilation issues with PAPI-5.x.