Convert NULL to nullptr from C++11 standard.

All uses of NULL have been switched to nullptr from the C++11 standard.
GCC 4.6 and higher are now required to compile.