Make FFI types public
Add basic open() support