Add compilation flag to temporary pointer checking