Fix mingw build because of bad check for libpcreposix.
Add *.exe to .gitignore.