detect gcc 4.9 in configure
Merge pull request #1467 from mind04/gcc

detect gcc 4.9 in configure