Add structs and ctypes support