Fixed C++03 and C++11 conditional tests building problem on cmake.