Check for clock_gettime and add librt