fixed optdepends and removed perl dependency