add code to set target properties for samples. update CPF_API defualt value on linux