A working version based on gdal-1.9.2