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