corrects -pthread ref