cmake: add proper include and library dependencies