get rid of compilation warnings

get rid of compilation warnings for samples project