Fix regression caused by changing the pointer-to-shared typedef.  Fixes #26.
Strip out typedefs to shared types.  Fixes #28.
Skip struct/enum/union forward declarations inside structs.  Fixes #32.
Convert inline to static.  Fixes #38.
Make sure that struct declarations don't get dropped when they're used in a pointer-to-shared type.  Fixes #31.