default 2 thread, cmake fixes