fix struct declarations.