Added warning related compilation flags and fixed related errors.

Hello, thanks for your great library !
I added some compilation flags and tested this with g++ under linux.
Several issues were encountered.
In fact none of the nulls are necessary here as c++ guarantees null initialisation of structures and arrays when this syntax is used.