Added -std=c++11 to CFLAGS

Made C++11 be used as code standard.
Avoids compilation warnings for various
things.