fix a minor warnings when pthreads are not available