Fix broken exit() function
Windows port: disable RTTI, fix for static boost linking, and don't use
LLVM bitcode for mingw build.
Fix for building from a chroot where the host may be e.g. 64 bit and the target
is 32 bit, we can't use CMAKE_SYSTEM_PROCESSOR and need to ask the compiler.