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