fix msvs compiler error - closes #2560