Support linking of rlib files in rustpkg

Currently `rustpkg` only looks for shared libraries. After this patch it also looks for `*.rlib` files.