Change order of gcc flags so we can build with newer versions