Build x86 and mips libs