Yahoo! profit dips, but stays ahead of forecasts