use more precise clocks in precise_time_ns when available

Recent versions of Linux include CLOCK_MONOTONIC_RAW, which is more
accurate than CLOCK_MONOTONIC when something like NTP is running. Also,
recent versions of FreeBSD include CLOCK_MONOTONIC_PRECISE, which
produces a more accurate result, according to the man page.