add glm fixes (definitions to cmake)

add some skeleton logic towards figuring out what z to put things on