fix mingw x86 compile error about "struct timespec", also should make sure pthread library name is "libpthreads.a".