fix build error of C++11 nullptr