BZ-1039716: Added support for static dependencies only when building a certain distribution.