cob_light bugfix and gcc version related build errors

-no more segfaults on empty service calls.
-gcc >= 4.7 cleaned up their include headers. To reference sleep and usleep, unistd.h should be included.