Add GL platform initialization.

This is likely what the crash problem is on Windows.