Add an interface for providing system wide initialization options to the windowing system.

This allows setting up Linux based systems which use multithreaded OpenGL contexts.
Merge pull request #65 from glennw/x-threads

Add an interface for providing system wide initialization options to the windowing system.