Fix issues with main class ctypes data type on windows.