allow detection of filename for errors messages when building dmd