Change nullptr to NULL to avoid possible issues with platforms that don't support C++11.