Fix the build on non-Windows platforms