detect older gcc version to exclude unsupported flags