better cross compilation support