Check value of HAVE_CXX11, not presence of definition.
Added command history on Unix using GNU readline library.