(cherry picked from commit a6e46c1c2ef491cd4cce39be47445e9da194e84e)
These changes enables to build tools only without even having MySQL installed