apt build-dep feature, rebased.

Add support for installing apt build dependencies.  This PR replaces PR #5296 and originates from issue #5270