Add support for headless mode to create an OSMesa context. …
This enables rendering to be consistent on build machines in headless mode, regardless of the GPU hardware / drivers present.