Replace nullptr with NULL for gcc 4.6.