Switch to using docker/pkg/mflags

To be used with https://github.com/SvenDowideit/docker/tree/read-and-write-profiles