change the default for the BUILD_TESTING CMake variable the right way

this caused another strange side effect: the BUILDNAME and
BUILD_COMMAND variables were suddenly ignored. Now we just temporarily
enable BUILD_TESTING until the CTest module is included and set it
back to whatever it was before. CMake still manages to baffle me...