Almost working with C++11 and opencv 3