more linux/unix fixes