add -D deprecation-warnings (see #1346)