Replace LINK_LIBS with mlir_target_link_libraries. Fixes #143246. Suggested-by: Nikita Popov <npopov@redhat.com>