fix #15 error checking in wgl and glx context creation