enable cross compilation with cmake