Allow use of new API.

This lets domreactor-redglass work with the new api.