Fix cmake of test binary

Add flag  "C++11"  to compiler options.