Add c++-compat to configure.ac
Fix error found by -Werror=c++-compat

Request for implicit conversion from ‘xxx’ to ‘yyy’ not permitted in C++