fixing dynamic loading of modules/libs