Add dependencies on gems removed from rails core in v4