Fix registry 0.6.x dependencies

cc @dmp42 @samalba 
Related: https://github.com/dotcloud/docker-registry/issues/441