Add pthread
Use libwinpthread.a when available
Bump to gcc-4.8.2
Get the gcc make -j flags right