cmake: fix headers not installed issue