[POWERPC] Fix legacy_serial.c error handling on 32 bits