fix glm crash and difference between older/newer versions of sfml