Install build-time dependencies correctly after bottle fails to pour.

When building from source after a failed bottle installation, ensure that build-time dependencies get installed if necessary.