fix build issue with gcc4.7 (needs unistd.h for sleep())