fix sample compile build