Fixes module declaration.
Fixes compiler.
Allows ffi definitions.
Implements protocols.