Clean up mavlink module

Deal with all mavlink module compiler warnings. No critical errors found
Merge pull request #1195 from jean-m-cyr/master

Clean up mavlink module