update for compiling by VS2010