Support `-t' flag for building test rigs.