enable cxx11 in the stage and install def