Fix missing link flags when building executables from the regression test system. The use of flags .. <target-type>EXE does not work because the target type is set to the main target (RUN from ther test system). Use gTARGET_TYPE instead which is set.