shared library binary safety fix