Fix compilation error on NULL with c++11.