cmake: support build without MySQL install

If libmysqlservices.a exists in build directory, it is used.