Minor fixes to yaffs2 code