Clean up mavlink module

Deal with all mavlink module compiler warnings. No critical errors found