[gnu_linux_x86] Add -ldl -lpthread to libRS and libRSCpuRef.