cmake: fix usage of implicit library and include paths