Fix test_valgrind target on out-of-source builds
Support debug and release builds
Remove xcodebuild support, which is less useful now that C++Ide exists