Apply julia patches

Now that we have a fork, may as well apply these patches. One's for cross-compiling, the other for MSVC.