As mentioned in my previous posting regarding your build system patch for cross-compiling,
there were a few tweaks I suggested. That patch below is intended to be applied on top
of your patch. Can you please try it out and let me know if you have any concerns?