Fixed build on Windows

Added missing function for Windows