force pthread inclusion due to bug in cmakes