Fix compilation warnings in test/stack.c