Fix Windows build: handles is declared after statement
Merge pull request #136 from poupas/master

Fix Windows build: handles is declared after statement