Various fixes and update to latest civix (for sql install/uninstall).