move $enable_debug down below checks for GCC to avoid setting CFLAGS