Use C++11 nullptr

Instead of NULL, we can use nullptr and nullptr_t