convert to msvc 10.  add all mexgen generated .m files and the mexgen generated .cpp file.  this will allow you to run
build.m without having mexgen installed.