Fix compilation in the lastest ndk r9 and after