add spatialindex as a local dependency to allow mingw build