Fix to remove compile warning related to .net framework 4.5.