ASACORE-966 Fix compilation errors in basic/basic_c_service sample

Signed-off-by: Rajat Rastogi <rajat.rastogi@microsoft.com>
Change-Id: Ibf37bca9bb5f4025e4096a179818bd0426407512