FFI fixes (more)

Fix FFI usage in the library.

3ca9131 solves #302, and 5e104a9 solves C warnings in tests/test_ffi_c_types_import.nit