Fixed ANSI C compliance. Unfinished work on foxmatrix.c.