unix, windows: use the same threadpool implementation