Allow out-of-source testsuite builds.
Adapt -cov/-profile test to out-of-source builds.
Manually replace ${RESULTS_DIR} for Windows compatibility.