Makefile patches from initial RISC-V cross/native build.