PERL-409 add missing declarations for MinGW on Windows
Added build artifacts to .gitignore