Fix compile on MSVC 2012 from Peter Ferrie (nw)