Fix FTBFS on riscv64
Links libatomic on riscv64 to fix the undefined reference to symbol '__atomic_exchange_1' issue during build.
Edited by Jun Yuan Tan
Links libatomic on riscv64 to fix the undefined reference to symbol '__atomic_exchange_1' issue during build.