Simplify version code
require ffi