Fix build issue on POSIX OSes and one failing test on Windows