add typedef size_t for apple