added external linking option for PAPI