Workaround for compilation error on some compilers