gcc: fix version detection and add flags for "warning3" and "warning4"
swig: add default flags for binary size optimizations