Fix for MS VS 2012 project

@origamiwolf, thanks for solution.
Fixes #5075.