Add check for GLM installation on non-Win32 systems

Thanks to Jussi Lind for pointing this out.
Fix LuaState error handling
Allow creation of additional shared graphics contexts

Can be used to multi-thread OpenGL stuff.