Fix VS build (nullptr instead of NULL when assigning to std function)