BLD: Fix ANSI C syntax error

Fixes msvc9/10 error C2143: syntax error : missing ';' before 'type'
TST: fail on declaration-after-statement in travis test

required for windows compilers
TST: test non integer item does not return array

from gh-4223 in the 1.8 branch
TST: test count_nonzero on unaligned memory
Merge pull request #4232 from juliantaylor/check-win-compile

TST: fail on declaration-after-statement in travis test