Fix for new GLI version.

The new version of GLI has a different API.