Removed the old MDI test code from the qt_simple example
VirtualProgram: repaired a faulty locking situation with accumulated function maps
Code cleanup in terrain engine
VirtualProgram: protect program upon first creation