Added C++ OpenCL 1.2 compatibility, fixed linking issues for building dynamic libs.