fixed dll dependencies not being copied for tests
cleaning build scripts on windows