arm compile errors and yaff bug fix

Addressed all arm compile errors
One bug fix for yaffs found from code review