Fixing syscalls more, moving large on-stack variables in fatfs to heap