Add unsafe to FFI functions, make errors cl_int