Fix for compiling with Clang