build: Remove deprecated gnome-common macro

Instead just add a --enable-debug flag directly.
build: Group format warning flags together

Otherwise the detection incorrectly finds them not supported.