Fix registration of generated source for compilation (#8)