Add pthread and libmongo_flash