Prefer ‘-Og’ and ‘-g3’, where supported, for debug builds.

-g3 adds debug info regarding macro expansion.
-Og = -O1 without debug-unfriendly optimisations; needs gcc >= 4.8.