Stub-generating implementation of the struct-building interface.
Test retrieving struct layout from C.

The plumbing needs some work, but the basic idea is there.