1. fixes failed to build samples on Debug state.
Merge pull request #31 from chengstory/4901

1. fixes failed to build samples on Debug state.