Only add add linker option if compiler is clang

Building the cutorch fails when using gcc as the main compiler

    CC=gcc-4.9 CXX=g++-4.9 luarocks make  rocks/cutorch-scm-1.rockspec

This pull request changes the CMake file to only add -stdlib=libstdc++ if the compiler is clang