copy from http://trac.osgeo.org/gdal, build with visual studio on windows