[build] add pthread for linking (to avoid errors while linking on some systems)
[build] drop unsed cmake modules from including