FreeBSD support
Merge pull request #396 from ebfe/freebsd

FreeBSD support
fmt: fix build
Merge pull request #397 from ebfe/fix-build-master

fmt: fix build with rust master
Fix deprecation warnings
id: add missing repr(C)
Merge pull request #398 from ebfe/deprecation
update whoami syntax for windows
Merge pull request #399 from Heather/fx1
update deprecated parts of sync
Merge pull request #400 from Heather/master