Don't disable deprecated API by default

Do it only when --enable-debug is set.

https://bugzilla.gnome.org/show_bug.cgi?id=700005