Relax some gem version constraints and upgrade gems