fix compilation with clang (fix #291)