Windows port: disable RTTI, fix for static boost linking, and don't use
LLVM bitcode for mingw build.