WIP Remove posixisms to enable build on Windows