main: Use nullptr inside C++ code
There is no definition for NULL, it can be 0 (long int) or nullptr, nullptr sould be used to make it clear what it's.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>