cross-compiling difficulty with on-the-fly gen/build/use paradigm