Support autoclose at build level
Merge pull request #49 from mdelapenya/MAKE_AUTOCLOSE_BUILD_SCOPED

Support autoclose at build level