Use AC_TRY_COMPILE to detect mysql_version.h

Sorry, using "mysql_config --variable=pkgincludedir" to detect
mysql_version.h isn't suitable because "--variable" option doesn't
exist in default package of CentOS6/ScientificLinux6.
I used MySQL-5.5 to test previous commit.