Disable OpenGL for headless mode (so unit tests pass on Linux).

Change-Id: Ie4e1a59ce68932084d4635cd0f8d11cbffd6a3a2