Removing a warning and a LOG4CXX macro