add support for gcc flags

Please do test it once on your end too.