added macros to suppress deprecation warnings