bugfix: set c++11 compiler flag depending on gcc version.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>