Better handling of .a files in ${SHARED_LIB} and friends.