Fix MinGW compilation issues. Mention MinGW support in README.md.