fix build for vs2010

it looks like cmake depreciated elif in a recent version

also it looks like you opened the sln in visual studio 2012 and the upgrade upgraded all of the proj files.  I changed them back to vs2010.