add support for apache %b formatter; fix %h to handle resolved hostnames