add vs2010 solution
remove unnecessary cast in main function