native: fix old device compile