Fix building against 5.2