Change FFI functions to accept type constructors.
Rename build -> dist.