Fix couple of ANSI declarations and prototypes