fixed AdSample

- fixed warnings
- changed to Makefile project