Set linkage for external function wrappers
Match argtypes being complex to determine pass-by-reference