WebDriver: fix some nits that prevent running W3C tests on Mac