fix cgl compilation