fix struct declaration, make it compile