Fixing build and test process on Windows