Changed gl-matrix error message

move webgl texture library initialisation call to rebuildLibraries in StateManager.