Run generate as part of the build
Fix incorrect override signature
Add virtual destructor for model interface.