OCL : Fixed bug in log on build failure

Now allocating the buffer dynamically, in case the log message is too big