Checkout a repository and compile it or link it