Do not pass static lib targets to rustc

rustc cannot take .a files, so don't pass them