Make crossbuild mostly static