fix attributes in ccall