added .gitignore
changed __MINGW32__ to _WIN32
fixed uninitialized variable warnings