Fix {FreeBSD,Windows} build

Fixes issue #9

Using https://github.com/bradfitz/camlistore/commit/80dfa10a628126db82f1ebed95d414e50f1925ee
and https://github.com/bradfitz/camlistore/commit/db18ff8a6044337a7905b27abc7a867b49653b7a