Ansify functions declarations.
Bunch of warning fixes.