Fix build error by changing nullptr to NULL on osx