fix windows build

fix windows build and add header