1.0.5

fix some cross-platform bugs