more robust search for .so / .dll files (#2)