add two declarations to support older versions of numpy (<1.7)
Merge pull request #11 from jfeist/fix_numpy

add two declarations to support older versions of numpy (<1.7)