Fixes found while testing linux entropy