Compile legacy gadgets on upload