Fix OSMesa issue.