Fix shared library path for platforms other than mac
Fix for DL API change in 1.9
remove deprecation warning of Config