Performance Evaluation of UDFs

This commit introduces the possibility to evaluate the performance of UDFs
using a simple tracing of instructions and cycles. This adds an optional
dependency to PAPI. If PAPI is available the make target is build.