half working windows build bat file and remove duplicate source code