Make os_test depend on print-executable-path.
Implement CloseFile test on Windows.
Fix compilation.