Add flag for checking deprecation warnings