Danks solid as White Sox beat Cubs 7-4