Use the ns-dist for win32. I tried it and it compiles without any problem.
You need to download the windows release
which has the patches and is called ns-2.1b8a-win.tar.gz and is available
directly from
http://www.isi.edu/nsnam/distso download that version and replace it with the ns version you are using
in the allinone pkg.