switch to before_install for dependency build