fix bugs in cmake