Fix error while building on non-c++0x compilers
Fix WIN32 compilation issues