Here we use vc2010 and vc2013 (windows) which compiles nginx and nearly all openresty modules cleanly, see http://nginx-win.ecsds.eu/ which we use and compiles cleanly. You might be missing compiler includes, or browse thru all the commits agentzh has made to get it to compile for vc++ for hints how some changes have been made for C. Note that we only use full source downloads and not hg,git or whatever diff system.