Workaround a bug on arm and ia64