Fixes #255

`checkcxx.cpp` builds successfully from cmake if c++11 is supported by the compiler or outputs an error message
Note : I did not check on OS X