fixed useithreads compilation issues