Header included and CMakeLists changed to prevent compilation errors

Include unistd to prevent undeclared identifier of function sleep.
Variable OpenCV2_FOUND changed for OpenCV_FOUND