fix win and linux types problem