better system for optionally uninstalling build-essential package

closes https://leap.se/code/issues/5426