Revert most of 439414a to avoid crashes on startup with log4cplus static library.