Replaced boost::chrono usage with gettimeofday().

The boost::chrono library was introduced in boost 0.47 and we need to support versions back to 0.43.0.