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