configure: Fix cross-building for RISCV host (v5)