Added flags include -Wreturn-type and -Wdeclaration-after-statement to prevent mixed declaration and code and missing return statements which other compilers require.