move glmatrices proc into glquake.h and make it inline