Microsoft revenue up, aided by Windows unit sales, though profit declines