Fix build error for numpy 1.7