Generate headers from spec, add option for installing targets