enable build privileged

Address issue #1916. Enables users to build images in privileged mode using the "-privileged" flag.