Added support for the background thread GLcontext

This might fix Lolno bug #610.