[Port] Ported to windows in Visual Studio 2010