Trying to compile the sdk (dfx)

Because the sdk is now open source, I have been trying to compile it without success. Am I doing a mistake (I was just using cargo build) or are there still dependencies that are not public? The error messages are below: