move `nib` to optional dependencies