fix compiler warnings in acorn.c