Fix errors when building on Windows with VS

The problem was introduced in 2805b0fe856a66ee80e0b7ff8d7bf9577f87daf5. Compilation fails with a bunch of weird errors ( sorry for screenshot but its better-looking than log ):

![errors](https://f.cloud.github.com/assets/1290755/565163/e58bea9c-c5e9-11e2-9a94-e7e25a8bd358.png)

This patch fixes this errors but i didnt test it on Linux ( yet ).