test: Fix build failures on Windows and Mac OS