Fixed a compilation error in MSVC <= 2012

Special thanks to Angelmelody

Signed-off-by: Haru <haru@dotalux.com>