I was having trouble for installing “thin gem” for rails 3, in my windows machine
cmain.cpp:752:6: error: cannot convert ‘stat*’ to ‘_stati64*’ for argument ’2′ to ‘int _fstati64(int, _stati64*)’
And fortunately I manage to find this answer. Just be sure to install ruby DEVKIT first.
Also, there is another good post for this issue http://www.thirdside.ca/2011/02/23/rails-3-on-windows-with-thin/