Add minor fixings for Linux, BSD and Minix.