Move FFI stuff to submodule