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