add macro for numpy < 1.7

as suggested by @longjon
https://github.com/BVLC/caffe/issues/44#issuecomment-32832810