Clean after regidx init failure; fixed build dependencies