log: fixing build if log4cxx is not installed.
Merge branch 'master' into next