Profiling: measure time on non-Windows/POSIX using clock_gettime

PowerPC CPU profiling was only enabled on Windows (using QueryPerformanceCounter). Try to do the same thing using POSIX clock_gettime.
If you want to use a define that only happens on x86_64 platforms check for _M_X86_64. Don't use these other defines.