Use boost multithread libraries only if they exist