Merge pull request #382 from ebfe/fix-build-master

Fix build with rust master
Fix sync and whoami on windows.
Merge pull request #380 from xmasotto/master

Fix sync and whoami on windows.
Add repr(C) to c structs
Update for new import syntax
Merge pull request #383 from ebfe/import_as

Update to new import syntax
Merge pull request #384 from ebfe/repr_c

Add repr(C) to c structs
Update rust-crypto
time::Duration::{milli}seconds now takes i64 arg