Make compilation warnings optional (opt-in)