Fix "invalid use of incomplete type" errors.