errors with undefined typedef symbol