Fix C++11 compatiblity
Compile source as C++11 by if possible