Check for architecture match when installing

More advanced logic (e.g. multiarch, or checking of architecture when
resolving the package dependencies) can be added later if we actually
need it.