* enable a lot of warnings for the lib and the example
* fixed warnings