Revert "Revert "small fix for vs 2013""

This reverts commit d7e6d3b65459024215256cedcc05381710926c48.