Fix vst build with states