Ignore the 'depreceated' warnings when compiling as C++