activate and fix compiler warnings, compile with -std=c++0x
use -std=c++0x if -std=c++11 is not supported
remove  -std=c++0x from AM_CXXFLAGS
remove exhaustive list and add 'default: break;' to switch statement
initialize p as 'p = s.data();'