Make plGLClient class platform-agnostic.
Some cross-platform code cleanups.