Update dependencies to work with rails4