Fixed compilation error under GHC-7.6.2
Removed dist