cross-compiling & XeonPHI fixes