compilation errors fixed after HtmlUnit upgrade