Add support for the overlay filesystem (v12 ported from 3.3.4)