removed "deprecated warnings" when switching on debug in c++ compiler