Enhance support for custom compression

Ensure that custom MINIGZIP tool does not cause issues elsewhere
in the build process.

Change-Id: I024857a13f99446283a50d8652f9c1ab3e841bf6