fixed gcc strict proto warnings