Hacky fork of the official golang flag package. Copied from https://github.com/docker/docker/tree/master/pkg/mflag