statemachineviewer: Make compile
statemachineviewer: Fix crash