build: Change default build from -O2 -g to -Os -g
Replace the default optimization flag -O2 with -Os for more compact code, which also reduces debugging symbols overhead. It translates to about 14% reduction (from 4.1 GB to 3.6 GB) in artifact sizes (build+cmake-cache).
Fixes #1033 (closed)