creating shared library instead of static