[jit] Fix some build problems when cross compiling.