Adapt npy_math.h with export declarations