add some checks for c compiler versions.