path.string() instead of path.c_str()
Finally things compile in Windows.