Fixed inconsitency in Windows version of API that was changed on Linux.