CMake test if ARM CPU cycle counter can be read.

If a program uses pthreads, functions system and fork will be hooked in
libc.so.6.