Made this work with cpm (but nothing else yet).
rather than the Linux way; various non-C bits of the ACK assume it takes an int, so it's cleaner).