Fix building dynamic/profiling executables that use TH

We need to explicitly build a _vanilla_ executable the first time.