Apply julia patches

Now that we have a fork, may as well apply these patches. One's for cross-compiling, the other for MSVC.
I'm confused by this patch.  What is the point of defining `_bool` in C++, since we never use that type?  And why include `stdbool.h`. if we define our own bool type?