Fixed compile issues with Visual Studio.