ENH: export py3k.integer_types from numpy.compat
BUG: check axes and window length input for all integer types

On Python 2.7, the long type was excluded.
Merge pull request #3699 from charris/backport-1.8-3698

Backport 1.8 3698