Fixed build for pthreads on MSVC and MSVC warning wibbles