Fix gem dependencies and warnings