fixed visual studio 2010 compatibiilty