In build_mingw32 script fixed path to Win32Toolchain.cmake. In this file set march=i686 and mtune=generic.