Added rt library for clock_gettime.
Modified test to account for weird windows clock.