Fix compatibility with older GHC.
Update CHANGELOG.
Bump version to 0.7.0.2.
Backport fixes from 0.7 branch.