fix cross compilation