Add clockGettime to support realtime clock on darwin

(configure.ac, Makefile.am): Remove librt link on darwin
(clockGettime): Add
(recordTime, getTick): Change clock_gettime to clockGettime


This pull request depends on #26.