[mkgmap-dev] Commit r4120: merge again from branch dem-tdb, now with last changes to that branch