log4cxx: fix build with latest apr update