Fix open4 error in Windos environments. Closes #58