Add check to avoid OSX bug in clGetEventProfilingInfo

- Dont consider info unavailable (i.e. size == 0) as an error
when profiling
- Improve error checking in ccl_prof_add_event