patch log4cxx to fix compilation on 10.9

relates #23744

One of the problems is already fixed in log4cxx head and the other has a patch at <https://issues.apache.org/jira/browse/LOGCXX-417>