fix miscelleaneous erros/warnings

- fix example compiler error
- fix doxygen warnings
- fix compiler flag