A number of Parallel and MPI fixes for OpenGL2

Fixed a compile issue and a bunch of failing tests for
Parallel and MPI. Had to add support for hardware off
screen windows back in.  Basically just updated the code
that is in OpenGL1 for OpenGL2. Also needed a couple other
minor fixes that these tests identified.

Change-Id: I2365fe7024248607e70dc763599ab4c7db1495d8
Merge topic 'parallel_fixes' into master

022ae36a A number of Parallel and MPI fixes for OpenGL2