fix arm and powerpc build