Replace MYSQL_inc with MYSQL_CFLAGS

Part of #1748
Replace MYSQL_lib with MYSQL_LIBS

Part of #1748
Merge pull request #1914 from rubenk/make-mysql-flags-consistent

Make mysql flags consistent