cmake: initial cross-compilation support