Fixing PAPI counters for new dynamic loading scheme