TS-1896 Fix broken eventfd after previous changes, and finish cleanup
TS-1735: use MAP_ANON to fix build error on Darwin