Fixed error allocating lower memory than required
Fixed freed memory read when calling addMessageF
Removed -g OpenCL compilation flag, not accepted by some vendors