(runtime) Check if papi is on the system before linking against

Having papi compiled and installed shouldn't be mandatory to
compile a c generated application. But it is required to compile
eventLib.c This commit add eventLib.c/.h only when papi has been found
on the target system.