Fix be*dec on systems where int is 16bit