Fix --enable-debug

Set proper CFLAGS for debug mode.
Remove useless checks