Add option to enable deprecations and hide warnings under --enable-extra-warn