visual studio 2012 compilation fix (nw)