Fix determine bitness of OS.
Change OS determine method.
Merge commit '296e5c760ae031345544933b81b83e8439ee083c' into mingw-w64-builds
Merge pull request #254 from Alexpux/mingw-w64-builds

Change OS detection method