pthread: work around winpthread header pollution on mingw