Heavy stock-based compensation spending with a $1.4 billion software acquisition squeezed operating margin to 2 percent despite beating revenue forecasts.