improve Win64 build

part of #609
also remove interfering stdint.h
and adapt to llvm API change on trunk
Same here.