Fixed some cmake issues.