Work around a problem with deallog when loading shared libs.