finally fix multi-file linking