Fixes to Log4jAppender