Revert "wrapper: do not error on C type linkage"

This reverts commit 5f390d910aa1aeb0c4d07fe37e10d4fbbf09842e.