Add a macro to detect numpy.