Use ref counting by default.
Merge pull request #1636 from mbebenita/overlay

Use ref counting by default.