partial support for out-of-tree builds of julia src

I'm not really sure, but I thought this might help with cross-compiling a sysimg, so that you could perhaps build a native version of julia alongside the cross-compile version