Fixed compatibility issue with Visual Studio compiler