finalize port to VC++ 2013 Update 3