fixed some bugs

Bugfixing in terrain editors and in running the project (fixing the
build scripts)