fix building with latest compilers