Use "-Og" switch only if gcc version >= 4.8.0.