Added CMAKE cross-compiling flags, to avoid Ubuntu bug #922524