fixed some more things. kmltool compiles again