ported to VS2010

VS2010 is C89 only