In its first financial report as a public company, Zynga edged past analysts’ expectations but posted a loss thanks to its large stock-based compensation expenses.