Fixed LD_PRELOAD
Fixed pthreads test