[common] adds underlying_type missing workaround for gcc < 4.7
[cmake] fixes overwriting debug flags
[tests] moar