use mysql_config to find out LIBS and CFLAGS