Don't set MAIN=1 globally, fix 'missing .cake3/' error in sub-libraries