echoserial: fix compilation for 32bit machines