Fix compiler warnings

Fixes to clean up qgroundcontrol warnings