Coverity defect IDs: 1316687, 1316688
These changes enables to build tools only without even having MySQL installed