fix static linking of the osm plugin against libcurl