Fix regression introduced that prevented dynamic compilation for non-index files
Add license