Fixes various gcc warning messages