Fixed build errors in kafka samples