lua-coco: apply work around of stack corruption error on GCC 4.5.2
lua: implement os.setenv functions
lua-scheduler: add more logging
lua-scheduler: return -1 if wait was cancelled
lua-watchdog: minor fix
lua-ntp: algorithm tuning