fixing pthread issue with building in linux; changing benchmark to nanoseconds