(singleton) Fix compile error with clang/gcc