workaround for missing clock_gettime() in OS

This commit allow compilation under OS X

see gist #1087739 by Juan Batiz-Benet(jbenet)