Dev misc fixes v1.1

Various fixes for compiler and checker warnings.

- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/93
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/14