Fix for gcc-6
Fix for gcc-6

Added an additional gcc version check Since gcc version 6
doesn't support -fno-sanitize (Patch provided by Monty)

MariaDB/mariadb-connector-c,MariaDB/mariadb-connector-c,MariaDB/mariadb-connector-c