Fix script warning in cmake_macosx.sh.
Fixed to correctly use Time::Sleep() instead of Sleep().