fix shared lib loading on Linux