adding filewatcher on mac and adding processor count api