native: fix compilation error