Check shared libraries architecture.

Do not add incompatible libraries to provides list.