Adding support for cross-compiling (using yocto).