Fix CreateInstance bug for Windows/Linux
Merge from soundeffect-merge