Changed NULL to nullptr as a first step to prepare the code for C++11.
Require C++11 through the build system