Change NULL into nullptr

nullptr is the C++11 way of NULL, and fixes numerous issues, with NULL.