Better support for ctypes