configure: Fix cross-building for RISCV host