Fix GCC warnings, and remove comments which duplicate function prototypes.