Fixed from 6.00.02 patch release

Fixes build errors in Visual Studio 2012. Thanks to Josh Blum.