Fix build failure on Windows