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.
Okay, their padding technique is a bit artisanal though, it leads to 0 size arrays.