fix deprecation warnings about dynamic finders
fix deprecated scope warning
Merge pull request #1 from akatz/fix-deprecation-warnings

Fix deprecation warnings