Updates to compile MAV against newer versions of gcc