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.
fix8/ff is bundled from a 3rd party source. We should not edit this - better to update from remote source.