fix cross-compile build & test