Add a more sound CLOCK_MONOTONIC check.

* configure.ac now attempts to compile a program using clock_gettime using `CLOCK_MONOTONIC`, and if
  successful, enables `NN_HAVE_CLOCK_MONOTONIC`. It also determines of `-lrt` should
  be used.