Fix build failures under GNU/Linux running on mips