Fixed compiler name check on Linux

- Default compiler name on most distros is c++
- Check for the flag "CMAKE_COMPILER_IS_GNUCXX instead
Merge pull request #15 from pavanky/develop

Fixed compiler name check on Linux

Code review looks good