Move VCS checkout directories out of build directory.

Deleting the build directory shouldn't require re-cloning any repository.
Set CMAKE_PREFIX_PATH for external projects.