improve the building system of IMITATOR for both the distributed and the nondistributed version