Got statemachine working with and old version of gl-matrix