Fixed Buffer Issues that is reported by HCL and CMake changes to build samples
Fixed Buffer Issues that is reported by HCL and CMake changes to build samples

ibm-messaging/iotf-embeddedc,ibm-messaging/iotf-embeddedc