MinGW 64bit Support Updates

We built a new release for 64bit Windows which supports the msys environment. I had to make a few updates to support building in the 64bit MinGW environment under MSYS. I'm including all my changes in the pull request.  I'll probably have come and rebase. However, if you're interested in pulling in these changes and need further updates, just let me know. Thanks!