switch to shared library