modify glm::translate and glm::scale

test on mac