Warriors re-sign C Anderson Varejao