Disable shared library for static executable