Partially refactor cula bindings with cffi.