Merge pull request #2 from fi01/test

3 commits in previous pull request
Define __NR_perf_event_open if not found in asm/unistd.h