allows building with -std=c++11 under G++

Fixes this bug: http://answers.opencv.org/question/7913/building-opencv-with-c11/