Allow out-of-source testsuite builds.
Adapt -cov/-profile test to out-of-source builds.
Manually replace ${RESULTS_DIR} for Windows compatibility.
Merge pull request #1152 from klickverbot/out-of-source

Allow out-of-source testsuite builds.