paflib: Check for perf_event_open before starting the build

EBB requires perf_event_open in order to work, which has been available
since Linux 2.6.32.
Trying to build EBB without this syscall will cause the build to fail.