fixed c++11 compiler support detection and upped cmake version requirements to 2.8.7

the check now works with cmake 2.8.7 or higher.