add -std=c++11 to CXXFLAGS to fix shared_ptr issue on recent GNU compiler