Added version check for glm.