swconfig: replace the shared library with a static one