hwaf-ext: more robust declare_build_external
version: 20131010