Properly link input files for VPATH builds