Compile with -Werror

Fix issue with Prelude library

Also needed some changes to compile on Tilera with -Werror.

https://buildbot.suricata-ids.org/builders/ken-tilera/builds/56