fixed gcc warnings (missing field initializers, unused functions)