Fix numpy 1.7.0 compatiblity.