Support to build in the recent mingw environment

In the recent mingw environment, this patch is needed for defining DS_MODALFRAME etc.
Merge pull request #3 from trueroad/patch-1

Support to build in the recent mingw environment