Update compile-dll.r

check nchar(.Platform$r_arch) for linux compatibility