Hello ,
I replaced ypedef pthread_t db_threadid_t; with typedef u_int32_t db_threadid_t; in db.h. It didn't work, then i tried reconfiguring with ../dist/configure --enable-cxx --enable-mingw --disable-pthread_api --disable-replication and still the same error.
http://i.imgur.com/Qi7HcDC.png