Disable memory limit if not supported by the OS
Fix subprocess code for Windows
Fix unit tests for Windows