clock_gettime is not defined on osx
include some different headers on osx
spaces to tabs