make glm an external dependency