fix bug for arm cross build