Enable check with various versions of gcc (e.g. CC=gcc-4.8 ./configure)

This change avoid:
    lmp-v : TEST SKIPPED (compiler is not GCC)

works also with: CC=/path/to/gcc ./configure