Move routine of auto deps before the one of strip
Reorder build scripts by the result of 2nd test build
Fix compilation problem in native environment