Support BUILD_TESTING=off