use cpu dependent stack size

The old stack size was too small for some platforms.