remove alloca()

because alloca() is badly supported by many C compilers