FIX compile error

FIX undefined reference to sleep and close function