fixed AdSample

- fixed warnings
- changed to Makefile project
Merge pull request #66 from jhoffmannrim/master

fixed AdSample