removed global struct surl
target to build shared library