static: enable hashlib, but don't build it in

Same with posix.