build fix for Rmath (needs to be listed after random) and check-arpack (missing dependency link)