Fixes #1768: Use nullptr instead of 0 or NULL in C++11 code.

Fixes #1768.