added pthreads in make
guard against broken dlsym which returns 0 on __clock_gettime but does not set dlerror()
attempt at global relative