Compile errors with newer gcc