fixed compinit errors