Fix cmake build for new thread plan files.