Some fixes to compile on Minix (not a 100% yet)