patch tests so they pass under cxx11 mode.