fix sub-module builds so that the license check works