Extensions to gl-matrix