Issue #112 make legacy tm optional

This implements the autotools part of making legacy translation memory (berkeley db) optional from issue #112