temp fix pthread for ubuntu
Cleaner way to fix pthread-related unittest build issue