Implement all the required support code for running glmatrix.c. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>