Remove unnecessary files, implement sleep() in C