Compilation fixes on GCC 4.8.1 Linux and switch by default to C++11