fix #3396
Merge pull request #49 from MadrMan/vsfix

fix #3396 (Compile error on VS2012)