backport dynamic finder fix (CVE-2012-5664)