Remove unnecessary files
Support cross-compile