xdk fixes
debug build scripts