giza: fix dependencies and replacement inheritance