Moves the logic in 0525515 to a common cmake include, and applies it to the other binaries.
0525515
debug_init()