Fixed Mac Compiling Problems

Because TR1 couldn't be included by TR1INCLUDE(*).
Catched now with #ifdef everywhere TR1 gets included.
Compiles now without an error here. :) (just some warnings which were
there before).
Also includes a workaround for clock_gettime(); which is not supported on OSX.