Fix ctypes warnings