native: fix old device compile

Change-Id: Ib091bc37e36723939da07d6e5aa230f5ac6e50af