Improved timer_cputimer_* crossfplatform support

It will now use the first available of:
- QueryPerformanceCounter (WIN32)
- clock_gettime (glibc)
- mach_absolute_time (Mac OS X)
- clock (fallback)

Modified configure script to detect which function is available

Signed-off-by: Haru <haru@dotalux.com>