added check for _ctypes, this should always be available