Fixed compilation with -Wstrict-prototypes

Same as for stable-1.0 but with more occurences