Replaced mathlibs with glm lua wrappers