Fixed compile error on some compilers