Fix build dependencies for mips