Adjust repositories and format build files