Added a --target option to allow cross-compilation.