Chain implementation changes
Fixed problem with free memory calculation in watchdog with newer avg-gcc