Fix gcc strict-prototypes warnings
Avoid gcc nested-externs warnings
Fix function pointer prototype in struct definition
Avoid gcc void pointer arithmetic warnings
Fix many gtk-doc warnings