Detect OSMesa errors
Merge pull request #115 from tomaka/detect-osmesa-errors

Detect OSMesa errors