Cabal: Include cabal-macros.h
Logging: Use line buffering to avoid scrambling