Since the older version of gcc is no longer being used, I believe that the mingw32-libpthread-old package recommended in https://github.com/mozilla/rust/wiki/Note-getting-started-developing-Rust is no longer valid. With the latest gcc and that package, even a simple C program compilation and linking as gcc test.c -lpthread fails with ld.exe: cannot find -lpthread. The problem no longer occurs if the mingw32-pthreads-w32 package is installed instead.
I believe the wiki page needs to be updated to ask the user to install the mingw32-pthreads-w32 package instead.