convert to VS2012, fix for latest protocol.