cmake: use cotire to improve compilation speed