Replace hardcoded -lmysqlclient -lz with variable