BUG: fix declaration-after-statement

closes gh-3930
Merge pull request #3932 from juliantaylor/windows-annoyance

BUG: fix declaration-after-statement