Fix Linux build by replacing nullptr with NULL - gcc 4.8.2 doesn't like it.