Fixed minix code storage and added patch file