Update gems and make stuff compatible with new gems.