Bring back cross compilation
Fix compilation with recent toolchains