Merge pull request #15 from kabochi/master

Cygwin portability
Fix more gcc warnings