patch mingw x86 libev compile error.

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