Fixed Makefile dependencies, added docker_build script to work around
https://github.com/dotcloud/docker/issues/1875.