thread pool fixes
prototype threadpool works on opt32