Rearrange unix build scripts. (#430)