made modifications so that it builds better on windows 8.1 with VS 2013