use shared library instead of static library