vs2010 switch_version.c fix