cmake: add missing header to legacy api