This required bringing back osmesa code from 25.0.7 which was the last version where it was supported. Seems to work fine though