riscv64 libc string support,adopted from aarch64, no native ffs() for now, use C version.after corrections from kettenis@